<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" type="text/css" href="{%$templates%}/admin.css">
{%formtool_init src="$templates/js/formtool.js"%}
</head>
<body marginheight='0' topmargin='0'>

<table border='0' cellpadding='0' cellspacing='1' width='100%' class="text">
<td width='150px' style='border-right: solid 1px #ffcc44' valign='top'>

{%include file='admin.meccano-nav.tpl.html'%}

</td>

<td align="center" valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr><td>
<div style="padding: 10px 30px; background-color: #f5f5f5;" align="left">
<a href="users.php?e=2">{%$events[2].title%}</a> | <a href="users.php?e=5">{%$events[5].title%}</a>
</div>
</td></tr>
<tr><td>

<form action='users.php' method='POST'>
{%section loop=$vars name=i%}
{%if $smarty.section.i.first%}
<table border="0" cellpadding="2" cellspacing="1" width="100%" class="text">

<tr bgcolor='#cccccc'>
<th>N:</th>
<th>Логин:</th>
<th>e-mail:</th>
<th>Имя:</th>
<th>был:</b></td>
<th>Включен:</th>
<th>Группы:</th>
<th>Удалить:</th>
</tr>
{%/if%}


<tr bgcolor='{%cycle values="#f0f0f0,#e0e0e0"%}'>
<td align='center'>{%$smarty.section.i.iteration+$paginate.first-1%}</td>
<td align='left'>&nbsp;<a href='users.php?e=1&id={%$vars[i].id%}' title='{%$events[1].title%}'>{%$vars[i].login%}</a></td>
<td align='left'>&nbsp;{%$vars[i].email%}</td>
<td align='left'>&nbsp;{%$vars[i].name%}</td>
<td align='left'>&nbsp;{%$vars[i].lastlogin|date_format:"%d.%m.%Y %H:%M"%}</td>
<td align='center'>
{%if $vars[i].valid eq 1%}
<a href="users.php?e=4&id={%$vars[i].id%}">
   <img src="{%$templates%}/img/on.png" width="16" height="16" border="0" title='{%$events[4].title%}'>
</a>
{%else%}
<a href="users.php?e=3&id={%$vars[i].id%}">
   <img src="{%$templates%}/img/off.png" width="16" height="16" border="0" title='{%$events[3].title%}'>
</a>
{%/if%}
</td>
<td align='center'>
{%if $vars[i].rights neq 'system'%}
<a href="users.php?a=35&id={%$vars[i].id%}"><img src="{%$templates%}/group16.png" width="16" height="16" border="0" title='Права доступа'></a>
{%/if%}
</td>
<td align='center'><input type='checkbox' value='{%$vars[i].id%}' name="dele[]"></td>
</tr>

{%if $smarty.section.i.last%}
</table>
{%/if%}
{%/section%}

</td></tr>
</table>

<div align="right" style="margin:10">
{%formtool_checkall name="dele[]" checkall_text="Выбрать все" uncheckall_text="Снять выделение"%}
</div>
<div align="right" style="margin:10">
<input type='submit' name='submit' value='&nbsp;Удалить&nbsp;' onclick='window.confirm("Вы уверены?\nОтмеченные вами записи будут удалены!")'>
</div>

<div style="float:left; padding: 20px 10px;">
Записей {%$paginate.first id=$pid%}-{%$paginate.last id=$pid%} из {%$paginate.total id=$pid%}
</div>
<div style="float:right; padding: 20px 10px;">
{%paginate_prev id=$pid%} {%paginate_middle id=$pid%} {%paginate_next id=$pid%}
</div>
</form>

</td>
</tr>
</table>

</body>
</html>